/**
 * 跳转到登陆页面
 * Created by 杨浩宇 on 2016-01-11.
 */
require(['requireConfig'], function (common) {
    var thisRequireArray = [
        'app/login/login'];
    var requireArray = common.commonRequire.concat(thisRequireArray);
    require(requireArray,
        function () {
            //使用require()加载插件
            //使用require 的domReady插件
            var domReady = require("domReady");
            //加载指定路径的JS文件
            var app = require("public/app");
            var Login = require('app/login/login');
            //强制限制pages/login.jsp在页面加载完成时再去加载/pages/app/login/login.jsp
            domReady(function () {
                var loginPage = app.getBasePath() + "/pages/app/login/login.jsp";
                $("#loginFrame").load(loginPage, {}, function (response, status, xhr) {
                    var login = new Login($("#loginFrame"));
                });
            });
        });
});